package toubiao.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import toubiao.service.impl.TreeServiceImpl;
import utils.easyui.domain.EzTree;

@Controller
@RequestMapping("/tree")
public class EzTreeController {

	@Autowired
	private TreeServiceImpl treeService;
	
	@RequestMapping("/ltrd/departmentWithDesigner")
	@ResponseBody
	public List<EzTree> getLtrdTreeOfDepartmentWithDesigner(String idsOfCheckDesigner){
		return treeService.getLtrdTreeOfDepartmentWithDesigner(idsOfCheckDesigner);
	}
	
	@RequestMapping("/ltrdSingle/partA")
	@ResponseBody
	public List<EzTree> getLtrdTreeOfPartA(String checkedIds){
		return treeService.getLtrdTreeOfPartA(checkedIds);
	}
	
	@RequestMapping("/ltrd/contact")
	@ResponseBody
	public List<EzTree> getLtrdTreeOfContact(String checkedIds,String partAId){
		return treeService.getLtrdTreeOfContact(checkedIds,partAId);
	}
}
